﻿using DAL;
using IService;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class WhOutboundDetailService : IWhOutboundDetailService
    {
        private readonly WhOutboundDetailDal dal;
        public WhOutboundDetailService(WhOutboundDetailDal dal)
        {
            this.dal = dal;
        }

        public Task<int> CreateAsync(WhOutboundDetail data)
        {
            return dal.CreateAsync(data);
        }

        public Task<WhOutboundDetail> GetByIdAsync(long Id)
        {
            return  dal.GetByIdAsync(Id);
        }

        public Task<List<StockOutItemDto>> GetDetailsByOrderId(long stockOutOrderId)
        {
            return dal.GetDetailsByOrderId(stockOutOrderId);
        }
    }
}
